package improtant;
//n的阶乘
public class nDeJieCheng {
    public static int getJ(int n){
        if (n==0){
            return 1;
        }else {
            return n*getJ(n-1);
        }
    }

    public static void main(String[] args) {
        System.out.println(getJ(3));
    }
}
